<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>被测评教师选择 - 师德师风测评系统</title>
<link rel="Bookmark" href="__PUBLIC__/common/img/favicon.ico" >
<link rel="Shortcut Icon" href="__PUBLIC__/common/img/favicon.ico" />
<script src="../Public/js/jquery.1.7.1.min.js"></script>
<link href="../Public/css/reg.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/font-awesome/css/font-awesome.min.css">
<!-- Validform_v5.3.2验证框架 -->
<link rel="stylesheet" type="text/css"
	href="__PUBLIC__/Validform/css/Validform_v5.3.2.css" />
<script type="text/javascript"
	src="__PUBLIC__/Validform/js/Validform_v5.3.2_min.js"></script>
<include file="Public:baidutongji" />
<script type="text/javascript">
			$(function() {
				var editor;
				var myform=$("#myform").Validform({
					tiptype:3,
					label:".label",
					showAllError:true,
					postonce:true,//开启二次提交防御
					ajaxPost:false,
					beforeSubmit:function(curform) {
						//在验证成功后，表单提交前执行的函数，curform参数是当前表单对象。
						lockScreen();
					},
					callback:function(data){
						$.Hidemsg();
					}
				});
				myform.addRule([{
					ele:"#province_code",
					datatype:"*",
			        nullmsg:"请选择省份"
				},{
					ele:"#city_code",
					datatype:"*",
			        nullmsg:"请选择市州"
				},{
					ele:"#area_code",
					datatype:"*",
			        nullmsg:"请选择县区"
				},{
					ele:"#school",
					datatype:"*",
			        nullmsg:"请选择学校"
				},{
					ele:"#school_type",
					datatype:"*",
			        nullmsg:"请选择学校类别"
				},{
					ele:"#college",
					datatype:"*",
			        nullmsg:"请选择学院"
				},{
					ele:"#speciality",
					datatype:"*",
			        nullmsg:"请选择专业"
				},
				{
					ele:"#name",
					datatype:"*1-100",
			        nullmsg:"请输入用户名，作为登录账号"
				},
				{
					ele:"#real_name",
					datatype:"*1-100",
			        nullmsg:"请输入真实姓名"
				},
				{
					ele:"#pwd",
					datatype:"*6-16",
			        nullmsg:"请输入6~16位字符的密码！"
				},
				{
					ele:"#pwd1",
					datatype:"*",
					recheck:"pwd",
			        nullmsg:"请再输入一次密码",
			        errormsg:"您两次输入的密码不一致！"
				},
				{
					ele:"#birth_year",
					datatype:"*",
					nullmsg:"请选择年份"
				},
				{
					ele:"#birth_month",
					datatype:"*",
					nullmsg:"请选择月份"
				},
				{
					ele:"#grade",
					datatype:"*",
					nullmsg:"请选择年级"
				},
				{
					ele:"#teacher",
					datatype:"*",
					nullmsg:"请选择被测评教师"
				}]);
			});
			
			//获取城市列表
			function getCity() {
				$.post("__APP__?g=Index&m=Public&a=get_city",{province_code:$("#province_code").val()},function(data) {
					$("#city_code").empty();
					$("<option value=''>请选择市州</option>").appendTo("#city_code");
					if(data.status == "1") {
						var oResults=data.data;
		                for(var i=0, len=oResults.length; i < len; i++) {
		                    $("<option value='"+oResults[i].code+"'>"+oResults[i].name+"</option>").appendTo("#city_code");
		                }
					} else {
						alert(data.info);
					}
				}, 'json');
			}
			
			//获取县区列表
			function getArea() {
				$.post("__APP__?g=Index&m=Public&a=get_area",{city_code:$("#city_code").val()},function(data) {
					$("#area_code").empty();
					$("<option value=''>请选择县区</option>").appendTo("#area_code");
					if(data.status == "1") {
						var oResults=data.data;
		                for(var i=0, len=oResults.length; i < len; i++) {
		                    $("<option value='"+oResults[i].code+"'>"+oResults[i].name+"</option>").appendTo("#area_code");
		                }
					} else {
						alert(data.info);
					}
				}, 'json');
			}
			
			//获取学校列表
			function getSchool() {
				$.post("__APP__?g=Index&m=Public&a=get_school",{area_code:$("#area_code").val()},function(data) {
					$("#school").empty();
					$("<option value=''>请选择学校</option>").appendTo("#school");
					if(data.status == "1") {
						var oResults=data.data;
		                for(var i=0, len=oResults.length; i < len; i++) {
		                    $("<option value='"+oResults[i].code+"'>"+oResults[i].name+"</option>").appendTo("#school");
		                }
						$("<option value='other'>其他学校</option>").appendTo("#school");
					} else {
						alert(data.info);
					}
				}, 'json');
			}
			//获取专业
			function getSpeciality() {
				$.post("__APP__?g=Admin&m=Public&a=get_speciality",{college:$("#college").val()},function(data) {
					$("#speciality").empty();
					$("<option value=''>请选择专业</option>").appendTo("#speciality");
					if(data.status == "1") {
						var oResults=data.data;
		                for(var i=0, len=oResults.length; i < len; i++) {
		                    $("<option value='"+oResults[i].code+"'>"+oResults[i].name+"</option>").appendTo("#speciality");
		                }
						$("<option value='other'>其他专业1</option>").appendTo("#speciality");
					} else {
						alert(data.info);
					}
				}, 'json');
			}
			//获取专业
			function getTeachers() {
				$.post("__APP__?g=Admin&m=Public&a=get_teachers",{college:$("#college").val()},function(data) {
					$("#teacher").empty();
					$("<option value=''>请选择教师</option>").appendTo("#teacher");
					if(data.status == "1") {
						var oResults=data.data;
		                for(var i=0, len=oResults.length; i < len; i++) {
		                    $("<option value='"+oResults[i].code+"'>"+oResults[i].name+"</option>").appendTo("#teacher");
		                }
					} else {
						alert(data.info);
					}
				}, 'json');
			}
			//获取教师基本信息
			function set_xx(){
				$.post("__APP__?g=Admin&m=Public&a=get_teacher_all",{code:$("#teacher").val()},function(data) {
					
					if(data.status == "1") {
						var oResults=data.data;
		                
					} else {
						alert(data.info);
					}
				}, 'json');
				
			}
		</script>
</head>
<body style="background: url(../Public/img/bg.png) center 0 no-repeat;" >
	<div id="title" style="margin:0 auto !important;"><img style="margin-left:320px;width: 40%;height: 40%" src="../Public/img/H1.gif"></div>
	<div style="font-size: 60px; color:#000;" align="center"><b>师德师风信息化监测平台</b></div>
	<br>
	<div id="container">
		<form id="myform" name="myform" method="post"
			action="__APP__?g=Index&m=Index&a=login_role_form"
			class="form-horizontal form-seperated">
			<input type="hidden" name="type" value="{$type}">
			<input type="hidden" name="formid" value="{$formid}">
			<div id="main" style="height:580px !important;">
			<br><br><br>
			<h1 style="color:#0D3C82;margin:0 auto;" align="center">选择被测评教师</h1>
			<br><br><br><br><br>
				<div class="unit college" style="fon-family:'宋体' !important;">
					<label for="college">学<span style="margin-left: 2em"></span>院：
					</label> <select id="college" name="college" class="college"  onChange="getTeachers();">
						<option value="">请选择学院</option>
						<volist name="colledge_data" id="vo">
						<option value="{$vo.id}">{$vo.name}</option>
						</volist>
						<option value="other">其他学院</option>
					</select>
				</div>
				<br>
				<div class="unit teacher" style="fon-family:'宋体' !important;">
					<label for="teacher">被测教师：</label>
					<select id="teacher" name="teacher" class="teacher" onclick="set_xx()" style="width:260px;">
						<option value="">请选择被测评教师</option>
					</select>
				</div>
				<br>
				<br>
				<br>
				<br>
				<br>
				<br>
				<br>
				<br>
				<div class="unit mt-5">
					<span style="margin-left: 2em"></span>
					<button type="submit" class="btn btn-danger btn-outlined">开始测评</button>
					<span style="margin-left: 8em"></span>
					<button type="button" class="btn btn-default btn-outlined"
						onclick="javascript:window.history.back(-1);">&nbsp;取&nbsp;消&nbsp;</button>
				</div>
				<!--					<a href="javascript:myform.submit();"><div class="reg-button"></div></a>-->
			</div>
		</form>
		<div class="login-bottom">
			<if condition="$type eq 'c'">
			<span style="margin-left: 15em"></span>
			<a href="__APP__?g=Admin&m=LeaderCheck&a=index" target="_blank" style="text-decoration:none;color: #000;text-align: left;font-weight: 800;font-size: 24px;"><i class="fa fa-check-circle"></i>&nbsp;教师自评审核</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
			<span style="margin-left: 2em"></span>
			<a href="__APP__?g=Admin&m=Scorecp&a=index&id={$userid}" target="_blank" style="text-decoration:none;color: #000;text-align: left;font-weight: 800;font-size: 24px;"><i class="fa fa-signal"></i>&nbsp;查看测评结果</a>&nbsp; 
			</if>
			<if condition="$type eq 'b'" >
			<span style="margin-left: 18em"></span>
			<a href="__APP__?g=Admin&m=Scorecp&a=scan_dffx&id={$userid}" target="_blank" style="text-decoration:none;color: #000;text-align: left;font-weight: 800;font-size: 24px;"><i class="fa fa-signal"></i>&nbsp;查看测评结果</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
			
			</if>
		</div>
		<br>
		<div id="footer" class="student">
			<p>测评单位：西北师范大学</p>
			<p>系统开发：甘肃省数字化教育工程实验室</p>
			<p>技术支持：甘肃省数字化教育工程实验室</p>
			<p>
				<a href="__APP__?g=Admin">[管理员登录]</a>
			</p>
		</div>
	</div>
	<style>
#kefu {
	width: 180px;
	height: auto;
	position: fixed;
	top: 50%;
	right: 5px;
	z-index: 8888;
	background: #fff;
	border: 1px solid #d1d1d1;
	border-top: 2px solid #ca2d25;
	display: none;
	margin-top: -140px;
}

#kefu .top {
	width: 100%;
	height: 35px;
	line-height: 35px;
	font-family: "Microsoft YaHei";
	font-size: 14px;
	color: #333;
	font-weight: bold;
	text-align: center;
}

#kefu .middle {
	font-size: 12px;
	width: 100%;
	text-align: center;
}

#kefu .middle p {
	color: #991C0A;
}

#kefu .middle a {
	color: #333333;
}

#kefu .close {
	float: right;
	margin-right: 10px;
	margin-top: 10px;
	cursor: pointer;
}

.right_bar {
	width: 28px;
	height: 95px;
	position: fixed;
	top: 60%;
	right: 0;
	margin-top: -242px;
	z-index: 9999;
}

.right_bar img {
	cursor: pointer;
}
</style>
	<!-- <div id="kefu">
		<div class="top">
			QQ在线咨询<img src="../Public/img/close.gif" class="close" />
		</div>
		<div class="middle">
			<a target="_blank"
				href="http://wpa.qq.com/msgrd?v=3&uin=483381754&site=qq&menu=yes">
				<div
					style="height: 20px; line-height: 20px; float: left; padding-left: 10px;">
					<img src="../Public/img/qq.gif" alt="学生问卷QQ咨询专线" title="学生问卷QQ咨询专线" />
				</div>
				<div
					style="height: 20px; line-height: 20px; float: left; padding-top: 3px;">学生问卷QQ咨询专线</div>
			</a> <br />
			<br />
		</div>
	</div> 
	<div class="right_bar">
		<img src="../Public/img/right_bar.jpg" />
	</div>-->
	<script>	
			$(function(){
				$('.right_bar').hide();
				$('#kefu').show();
				$('.right_bar').click(function(){
					$(this).hide();
					$('#kefu').show();
				});
				$('#kefu .close').click(function(){
					$('.right_bar').show();
					$('#kefu').hide();
				});
			});
		</script>
</body>
</html>